home *** CD-ROM | disk | FTP | other *** search
- Path: info.curtin.edu.au!newsmaster
- From: escott@cuppa.curtin.edu.au
- Newsgroups: comp.lang.c++
- Subject: Beginner questions (TC++ 3.0)
- Date: Sat, 13 Jan 96 17:20:14 +800
- Organization: Curtin University
- Message-ID: <4d7tgq$hf@info.curtin.edu.au>
- NNTP-Posting-Host: vax7.curtin.edu.au
-
- I'm in the process of converting from Pascal to C/C++, and dont as yet have any
- reference material other than the Turbo C++ 3.0 manual. My first project is to
- convert all my Pascal unit files into C++ library files. I've converted the
- code across successfully for most of my routines (which are mainly inline
- assembler in any case), but I'm having trouble getting Turbo C++ to recognise
- my compiled files. I can compile the file to a *.lib file by using the
- Options|Applications menu, however, I am not certain as to the process of
- getting the compiler to recognise the files existance.
-
- At present to utilise the routines I have to have a #include stuff.cpp for the
- file, instead of being able to refer to the header file. I believe, but have
- been unable to accertain, that I may have to include in the header some
- reference that allows the compiler to identify the .lib file. Some of the
- included text files also indicate that I must include the header and source
- files in certain directories, and contain other strange directives that I
- cannot make any sense of.
-
- The point of all this is that I would like a clear, plain english description
- of how to go about creating library files, as the manual and other
- documentation are somewhat unclear on this process.
-
- I am also trying to read binary files into memory. Having been somewhat
- unsuccessful with C++ commands, I have decided to use Dos function calls. I am
- using the dos library at present. What I wish to know is:
-
- a) Can the handle obtained form the dos.h open command be used directly with
- dos function calls.
-
- b) Will the file be automatically closed if opened within a procedure, when
- that procedure goes out of scope. This is important in that I will be opening
- far more files than it is practical to have file handles. If the file does not
- get close automatically, is it better to use an inline assembler function call,
- a library function, or does it not matter.
-
- As a final question, could anyone in Perth, Australia steer me in the direction
- of a good source for C++ reference books.
-
- Thanks in advance for anyone with the patience to get this far
- Colin Scott
-